import { defineConfig } from 'vitepress';

// https://vitepress.dev/reference/site-config
export default defineConfig({
  title: 'vue笔记文档',
  base: '/vue-online-notes/',
  description: 'vue笔记文档',
  themeConfig: {
    // https://vitepress.dev/reference/default-theme-config
    nav: [
      { text: '首页', link: '/' },
      { text: 'vue基础', link: '/01-vue-base/01-day' },
      { text: '面经-h5', link: '/02-interview-H5/01-day' },
      { text: '面经-PC-CMS', link: '/03-interview-PC-CMS/01-day' },
    ],

    sidebar: [
      {
        text: 'vue 基础',
        items: [
          { text: 'vue 第1天', link: '/01-vue-base/01-day' },
          { text: 'vue 第2天', link: '/01-vue-base/02-day' },
          { text: 'vue 第3天', link: '/01-vue-base/03-day' },
          { text: 'vue 第4天', link: '/01-vue-base/04-day' },
          { text: 'vue 第5天', link: '/01-vue-base/05-day' },
          { text: 'vue 第6天', link: '/01-vue-base/06-day' },
        ],
      },
      {
        text: '面经-h5',
        items: [
          { text: '面经-h5 第1天', link: '/02-interview-H5/01-day' },
          { text: '面经-h5 第2天', link: '/02-interview-H5/02-day' },
          { text: '面经-h5 第3天', link: '/02-interview-H5/03-day' },
        ],
      },
      {
        text: '面经-PC-CMS',
        items: [
          { text: '面经-PC-CMS 第1天', link: '/03-interview-PC-CMS/01-day' },
          { text: '面经-PC-CMS 第2天', link: '/03-interview-PC-CMS/02-day' },
          { text: '面经-PC-CMS 第3天', link: '/03-interview-PC-CMS/03-day' },
        ],
      },
    ],

    socialLinks: [
      { icon: 'github', link: 'https://github.com/vuejs/vitepress' },
    ],
  },
});
